// 歌曲链接 - v1
// 此版本不再采用 br 作为音质区分的标准
// 而是采用 standard, exhigh, lossless, hires 进行音质判断

const crypto = require('crypto')
module.exports = (query, request) => {
  // query.cookie.os = 'pc'
  // const data = {
  //   ids: '[' + query.id + ']',
  //   level: query.level,
  //   encodeType: 'flac',
  // }
  // return request(
  //   'POST',
  //   `https://interface.music.163.com/eapi/song/enhance/player/url/v1`,
  //   data,
  //   {
  //     crypto: 'eapi',
  //     cookie: query.cookie,
  //     proxy: query.proxy,
  //     realIP: query.realIP,
  //     url: '/api/song/enhance/player/url/v1',
  //   },
  // )
  return new Promise(function(resolve, reject){
    resolve({
      status: 200, // The Http Response Code
      body: {
        "data": [
          {
            "id": 1,
            "url": "https://llh-resources-1321535012.cos.ap-guangzhou.myqcloud.com/music/music1.mp3",
            "code": 200
          },
          {
            "id": 2,
            "url": "https://llh-resources-1321535012.cos.ap-guangzhou.myqcloud.com/music/music2.mp3",
            "code": 200
        }
      ],
      "code": 200
      }, // API Response body
    cookie: []
    });
  })
}
